<template>
  <cost-consum-page
    :queryFormItem="queryFormItem"
    :collapseFormItem="collapseFormItem"
  />
</template>

<script>
import costConsumPage from '../components/costConsumPage.vue'
import mixin from "@/pages/components/mixins/mixin";

export default {
  components: { costConsumPage },
  mixins: [mixin],
  computed: {
    queryFormItem() {
      return [
        {
          key: "equipment",
          title: {
            "zh-CN": "设备",
            "en-US": "equipment",
          }[this.G_Locale],
          minWidth: 100,
          align: "center",
          config: { type: "select", options: this.equipOptions },
        },
        {
          key: "batch",
          title: {
            "zh-CN": "批次",
            "en-US": "batch",
          }[this.G_Locale],
          minWidth: 100,
          align: "center",
          config: { type: "text" },
        },
        {
          key: "specification",
          title: {
            "zh-CN": "规格",
            "en-US": "specification",
          }[this.G_Locale],
          minWidth: 100,
          align: "center",
          config: { type: "text" },
        },
        {
          key: "timeRange",
          title: {
            "zh-CN": "时间区间",
            "en-US": "timeRange",
          }[this.G_Locale],
          minWidth: 100,
          align: "center",
          config: { type: "datetimeRange" },
        },
      ];
    },
    collapseFormItem() {
      return [
        {
          key: "equipment",
          title: {
            "zh-CN": "设备",
            "en-US": "equipment",
          }[this.G_Locale],
          minWidth: 100,
          align: "center",
          config: { type: "select", options: this.equipOptions },
        },
        {
          key: "batch",
          title: {
            "zh-CN": "批次",
            "en-US": "batch",
          }[this.G_Locale],
          minWidth: 100,
          align: "center",
          config: { type: "text" },
        },
        {
          key: "specification",
          title: {
            "zh-CN": "规格",
            "en-US": "specification",
          }[this.G_Locale],
          minWidth: 100,
          align: "center",
          config: { type: "text" },
        },
        {
          key: "timeRange",
          title: {
            "zh-CN": "时间区间",
            "en-US": "timeRange",
          }[this.G_Locale],
          minWidth: 100,
          align: "center",
          config: { type: "datetimeRange" },
        },
      ];
    }
  },
  data() {
    return {
      equipOptions: []
    }
  },
   methods: {

  }
}
</script>

<style scoped lang="scss">

</style>
